<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en" dir="ltr"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en" dir="ltr"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" dir="ltr"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="en" dir="ltr"><!--<![endif]-->

<head>
<!-- Meta Data ================ -->
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="../assets/images/logo_muni.png"/>
<meta name="description" content="Fill this in with your information" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />

<!-- CSS ================ -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css" type="text/css"/>
<link rel="stylesheet" href="../assets/css/style.css" type="text/css"/>
<link rel="stylesheet" href="../assets/css/header-1.css" type="text/css"/>
<link rel="stylesheet" href="../assets/css/table.css" type="text/css"/>

<!-- Icons ================ -->
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png" />
<!-- For first- and second-generation iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png" />
<!-- For iPhone with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png" />
<!-- For third-generation iPad with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png" />
<link rel="shortcut icon" href="favicon.ico" />

<!-- Open Graph for facebook
http://graph.facebook.com/[UserName] replace [UserName] 
with yours and get your fb:admis content information where the XXXX goes.
================================================== -->
<meta property="og:title" content="" />
<meta property="og:type" content="" />
<meta property="og:url" content="" />
<meta property="og:image" content=""/>
<meta property="og:site_name" content="" />
<meta property="fb:admins" content="XXXXX" />
<meta property="og:locale" content="en_us" />
<meta property="og:description" content="  " />


<!-- SCRIPTS ============================================== -->
		<!--	NOTE:: jquery 1.9.1 supports older ie, 2.0 does not, but 1.9.1 does not work well on ie8 and 
				lower so version 1.7.2 is called for older versions of ie 
				:: calling jQuery in the head for ajax work if necessary.
				-->
		<!--[if gt IE 8]><!-->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
		<script>window.jQuery || document.write('<script src="../assets/js/jquery-1.9.1.min.js"><\/script>')</script>
		<!--<![endif]-->
		<!--[if lte IE 8]>
			<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
		<![endif]-->

<!-- Add to Head after Style sheet http://modernizr.com/docs/#installing  ================ -->
<script src="../assets/js/modernizr.js"></script><!-- js multiple backgrounds svg background size -->
<script src="../assets/js/lgejs.js"></script><!-- js multiple backgrounds svg background size -->
<script type="text/javascript" language="javascript" src="../assets/js/jquery.dataTables.js"></script>
<script type="text/javascript">
	// AGREGADOS
	//Cargar tabla
	$(document).ready(function() {
    	$('#example').dataTable();
	} );
</script>
<script type="text/javascript">

function funcionphp(id,username){
location.href="/form/backend/admin/setVisto/9/admin";
}
</script>
<!-- sequence slider -->
<link rel="stylesheet" href="../assets/css/sequence-slider.css" type="text/css" media="screen" />

</head>
<body>

<!-- begin accesibility skip to nav skip content -->
<ul class="visuallyhidden" id="top">
	<li><a href="#nav" title="Skip to navigation" accesskey="n">Skip to navigation</a></li>
	<li><a href="#page" title="Skip to content" accesskey="c">Skip to content</a></li>
</ul>
<!-- end /.visuallyhidden accesibility--> 

<!-- mobile navigation trigger-->
<!-- begin .header-->
<header class="header  clearfix"> <img src="../assets/images/print-logo.png" class="print logo" alt="name of company" />
	<div class="container"> 
		<!-- begin #logo -->
		<div class = "row-fluid" > 
			
				<a href="index.html"><img class =" pull-left" alt="" src="../assets/images/logo.png"/><em></em></a> 	
				<br>															
				<a href="index.php"><img class="img-responsive  pull-right" src="../assets/images/logo_muni.png"></a>
				<a href="index.php"><img class="img-responsive  pull-right" src="../assets/images/logo_er.png"></a>
				<a href="index.php"><img class="img-responsive  pull-right" src="../assets/images/logo_ar.png"></a>	
				<br>								
		</div>		
		<!-- end #logo --> 		
		<br>
	</div>
	<!-- close / .container--> 
</header>
<!-- close /.header --> 

<!-- begin #page - the container for everything but header -->
<div id="page">
	<div class="hero-unit">
		<div class="container">
			<h2>Dirección de Habilitaciones  <?php echo $username; ?></h2>
			<?=anchor($this->session->sess_destroy(), 'Cerrar sesión')?>
		</div>
		<!--close container--> 
	</div>
	<!--close hero-unit-->
	<div class="container clearfix" id="main-content">
		<!--begin main content-->	
		<div class="row-fluid"> 			
			<!--close section secondary-column sidebar span3-->		
			<!--begin row-fluid--> 
			<!--*** add class "holy-grail" to row-fluid class to make a three column skinny, fat, skinny layout ***-->
			<div class="primary-column" id="divPrincipal">	
				<h3 class="short_headline"><span><?php echo $subtitle;?></span></h3>													
				<strong>Estado actual de la página: </strong><p><font color =<?php echo $color ?>><?php echo $estadoPagina ?></font></p>				
				
				<div class="row-fluid">        
					<?php echo validation_errors(); ?>
					<?php if ($perfil == 'administrador'){ ?>	
					
					 <div class="span6 bgcolor">
					 <?php echo form_open('backend/admin/setUser','name="usrForm"'); ?>				
		              <div class="control-group">
		                <label class="control-label" for="usr">Agregar Usuario </label>
		                <div class="controls">
		                  <div>                    
		                    <?php $options = array(                 
		                    						'administrador' => 'Administrador',                                         
		                                            'user' => 'User'	                                            
		                                          ); ?>
		                    <?php echo form_dropdown('usrType', $options, set_value('usr'), 'class = "input-xxlarge" name="usrType"')?>
		                  </div>
		                  <div><label class="control-label">Usuario:</label> </div> 
						  <div><input type="text" name="usuario" class = "input-xxlarge backend"></div>
						  <div><label class="control-label">Clave:</label> </div>
						  <div><input type="password" name="password" class = "input-xxlarge backend"> </div>
						  <div><label class="control-label">Repetir Clave:</label> </div> 
						  <div><input type="password" name="repassword" class = "input-xxlarge backend"></div>
						  <div> 
						  
		                </div>
		              </div>
		            </div><!--/span-->		

	    			<input type="submit" name="enviar" class="btn btn-primary btn-large offset5" value="Registrar"></div>  
	    			<?php echo form_close(); ?>							
					<?php echo form_open('backend/admin'); ?>		
				  	<div class="span6 bgcolor">
		              <div class="control-group">
		                <label class="control-label" for="down">Habilitar Sitio </label>
		                <div class="controls">
		                  <div>                    
		                    <?php $options = array(                                                          
		                                            'N' => 'Sí',
		                                            'Y' => 'No'
		                                          ); ?>
		                    <?php echo form_dropdown('down', $options, set_value('down'), 'class = "input-xxlarge"')?>
		                  </div> 
		               </div>
		              </div>
		            

	    			<input type="submit" class="btn btn-primary btn-large" value="Guardar">
	    			</div><!--/span-->		
	    			<?php echo form_close(); ?>    

   
				 </div>		
				 
    			<?php } ?>
				<h3 class="short_headline"><span>Listado de habilitaciones</span></h3>
				<!-- <table cellpadding="0" cellspacing="0" border="0" class="display" id="example" width="100%"></table> -->
								  							   
				<table class="display" id="example" style = "text-align:center;">
					<thead>
						<tr>
							<th> Fecha </th>
							<th> Requerimiento N°</th>
							<th> Nombre </th>
							<th> Apellido </th>
							<th> Razon Social </th>
							<th> CUIT </th>							
							<th> Acciones</th>
							<th> Visto Por</th>
						</tr>
					</thead>
					<tbody>					
					<?php 
						foreach ($aHabilitaciones as $reg) {
							?>
							<tr>
								<div id="tr"></div>
								<td>
									<?php echo $reg->fecha;?>
								</td>								  	   

								<td>
									<?php echo $reg->id;?>
								</td>								  	   
							  
								<td>
									<?php echo $reg->nombre;?>
								</td>

								<td>
									<?php echo $reg->apellido;?>
								</td>
							  								  
								<td>
									<?php echo $reg->rsocial;?>
								</td>

								<td>
									<?php echo $reg->cuit;?>
								</td>									

								<td class="centeralign tooltip_att" align ="center">										
									<a id="view-1" data-placement="right" data-rel="tooltip" data-original-title="View" data-target="#myModal<?php echo $reg->id;  ?>" onclick= "funcionphp()" data-toggle="modal"><span class="icon-eye-open"></span></a>
								</td>

								<td>
									<?php echo $reg->vistopor; ?>
								</td>									
						<?php } ?>									
							</tr>	
					</tbody>
				</table>					
				<!-- <div class="detalles" id="detalles"></div> -->
				<?php foreach ($aHabilitaciones as $reg1) { ?>											
					<div id="myModal<?php echo $reg1->id; ?>" class="modal hide fade" data-toggle="modal" data-target="#myModal">								  
					  <div class="modal-body" id="imprimir">	
						  	<h4> <strong>PRE-FORMULARIO DE HABILITACIÓN ESPECIAL</strong></h4>	
						  	<h5> <strong>REQUERIMIENTO Nº </strong><?php echo $reg1->id?></h5>
							<h5> <strong>DATOS DE LA SOLICITUD</strong> </h5>
							<strong> Fecha de la solicitud: </strong><?php echo $reg1->fecha?><br>	
							<strong> Caracter de la solicitud: </strong><?php echo $reg1->caracter?><br>
							<strong> Actividad/es a desarrollar: </strong> <br><?php echo $reg1->actividadesDesarrollar?><br>
							<h5> <strong>DATOS DEL TITULAR DEL TRAMITE</strong> </h5>
							<strong> Nombre: </strong> <?php echo $reg1->nombre?><br>      
							<strong> Apellido: </strong><?php echo $reg1->apellido?><br>
							<strong> Tel&eacute;fono fijo: </strong><?php echo $reg1->telefono?>         
							<strong> Tel&eacute;fono movil: </strong><?php echo $reg1->telefonomovil?><br>         
							<strong> Email: </strong><?php echo $reg1->email?><br>
							<strong> Domicilio: </strong><?php echo $reg1->domicilioReal?><br>
							<strong> CUIT: </strong><?php echo $reg1->cuit?> <br>
							<strong> Persona: </strong><?php echo $reg1->prsocial?><br>
							<strong> Razon Social: </strong><?php echo $reg1->rsocial?><br>
							<strong> ¿Posee infracciones pendientes de pago en el Juzgado de Faltas Municipal? </strong><?php echo $reg1->libreDeudaJFaltas?><br>
							<strong> ¿Posee deuda en Actividades Comerciales (Tasa de Comercio)? </strong><?php echo $reg1->libreDeudaActCom?> <br>					
							<h5> <strong>DATOS DEL INMUEBLE</strong> </h5>
							<strong> Nombre titular del inmueble: </strong><?php echo $reg1->titular?><br>
							<strong> Domicilio: </strong> <?php echo $reg1->domicilio?><br>
							<strong> ¿Qué vinculo posee usted con el titular del inmueble? </strong><?php echo $reg1->vinculo?><br> 
							<strong> Manzana: </strong><?php echo $reg1->manzana?>
							<strong> Parcela: </strong><?php echo $reg1->parcela?>
							<strong> TGI: </strong><?php echo $reg1->tgi?>
							<strong> OSM: </strong><?php echo $reg1->osm?>					
							<strong> MT2: </strong><?php echo $reg1->mt2?><br>
							<strong> ¿Posee el inmueble documentacion de Obra Registrada? </strong><?php echo $reg1->docDeObra?><br>
							<strong> ¿Posee el inmueble deudas en la Tasa Inmobiliaria Municipal? </strong><?php echo $reg1->libreDeudaInmo?>									
					  </div>
					  <div class="modal-footer">
					  	<!-- <form id="myForm" action="backend/admin/setVisto" method="post">	 -->
					    	<button class="btn btn-success" onclick="imprimir();">Imprimir</button>		
					   		<input type='hidden' name='vistopor' value='<?php echo $reg1->id?>'>
					    	<button class="btn btn-danger" id="close" type ='submit' data-dismiss="modal" aria-hidden="true">Close</button>								    																    								    							 								    								   
					    <!-- </form> -->
					  </div>
					</div>
					<?php } ?>										
			</div><!--close article span6 primary-column--> 				
		</div><!-close row-fluid--> 
		<!-- Modal -->																																							
	</div><!--close .container id="main-content" --> 
	<!--begin footer -->
	<footer id="footer" class="clearfix">
		<div class="container"><!--footer container-->										
			<section>
				<h3 class="short_headline"><span>Teléfonos Útiles</span></h4>
				<div class="row-fluid">
					<div class = "span4">
						<ul>
							<li>
								<h5><strong>Municipalidad de Gualeguaychú</strong></h5>
								<ul>
									<li><strong>Conmutador: </strong> +54 (3446) 420400</li>
								</ul>
							</li>
							<li>
								<h5><strong>Secretarías</strong></h5>
								<ul>
									<li><strong>Desarrollo Social: </strong> +54 (3446)  420411 / 412 / 413</li>
									<li><strong>Gobierno: </strong> +54 (3446) 420434</li>
									<li><strong>Planeamiento: </strong> +54 (3446) 420407</li>
									<li><strong>Hacienda: </strong> +54 (3446)  420465</li>
									<li><strong>Obras Públicas: </strong> +54 (3446) 422710</li>
									<li><strong>Turismo: </strong> +54 (3446) 422900 / 423668</li>
								</ul>
							</li>
						</ul>
					</div>
					<div class="span4">							
						<ul>
							<li>
								<h5><strong>Otras Áreas</strong></h5>
								<ul>
									<li><strong>Prensa: </strong> +54 (3446)  420430 /<strong>Fax: </strong>420428</li>
									<li><strong>HCD: </strong> +54 (3446) 420443</li>
									<li><strong>Cultura: </strong> +54 (3446) 427989 / 432643</li>
									<li><strong>Estación: </strong> +54 (3446)  422227</li>
									<li><strong>Mantenimiento: </strong> +54 (3446) 430908</li>											
								</ul>
							</li><br>
							<li>
								<h5><strong>100 Bomberos</strong></h5>
								<ul>											
									<li><strong>Bomberos Voluntarios: </strong> +54 (3446)  423333</li>											
								</ul>
							</li>
						</ul>
					</div>							
					<div class="span4">							
						<ul>
							<li>
								<h5><strong>103 Defensa Civil</strong></h5>
								<ul>
									<li>Atención permanente las 24 hs. Actúa ante inundaciones, accidentes en la vía pública, derrame de sustancias tóxicas, etc.</li>											
								</ul>
							</li>
							<li>
								<h5><strong>106 Emergencia Nautica</strong></h5>										
							</li><br>
							<li>
								<h5><strong>107 Emergencia Médica</strong></h5>										
								<ul>
									<li>Servicio gratuito de ambulancias y atención médica de urgencia que cubre toda la Ciudad.</li>
								</ul>
							</li>

						</ul>
					</div>					
				</div>
			</section>
			<!--close section-->									
	</footer>
	<!--/.footer--> 
	
	<span class="backToTop"><a href="#top">back to top</a></span> </div>
<!-- close #page--> 

<!-- JS JQuery ================ --> 
<script src="../assets/js/bootstrap.min.js"></script>


<!--initialize scripts / custom scripts all pages--> 
<script src="../assets/js/custom.js"></script>
</body>
</html>